﻿
using Entity;
using Entity.DTO;
using System.Runtime.CompilerServices;
using System.Security.Principal;

namespace Bll
{
    /// <summary>
    /// 订单业务逻辑接口
    /// </summary>
    public interface IOrderBll
    {
        ///// <summary>
        ///// 创建订单
        ///// </summary>
        ///// <returns></returns>
        public bool CreateOrder(string CustomerName, string CustomerPhone, string CustomerAddress, double Area, string AgentName, string AgentPhone, DateTime StartTime, DateTime EndTime, string DesignerId, string userId, out string msg);

        /// <summary>
        /// 软删除订单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteOrder(string id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteOrders(List<string> ids);

        /// <summary>
        /// 根据订单id获取订单信息
        /// </summary>
        /// <param name="menuId"></param>
        /// <returns></returns>
        public object GetOrderById(string menuId);


        /// <summary>
        /// 获取订单集合
        /// </summary>
        public object GetOrderList(string title, int page, int limit, out int count);

        /// <summary>
        /// 获取打印订单数据打印账单
        /// </summary>
        /// <returns></returns>
        object GetPrintOrderData(string orderId);


        /// <summary>
        /// 更新订单
        /// </summary>
        /// <returns></returns>
        public bool UpdateOrder(string id, string customerName, string customerPhone, string customerAddress, double area, string agentName, string agentPhone, DateTime startTime, DateTime endTime, string designerId, out string msg);

    }
}